package lgs.hm.aop;

import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.springframework.stereotype.Component;

@Aspect
@Component
public class ChouBoy {
	
	@Around("lgs.hm.aop.ShuaiGe.haha()")
	public Object round(ProceedingJoinPoint pjp) {
		System.out.println("-----------");
		Object[] args = pjp.getArgs();
		
		try {
			Object r = pjp.proceed();
			System.out.println("今天很happy，明天再约");
			return r;
		} catch (Throwable e) {
			System.out.println("没钱就不是个事，我卖血付款");
		}
		return null;
	}

}
